export interface SpuSaleAttrValueListModel {
  id?: number
  spuId?: number
  saleAttrName?: string

  baseSaleAttrId?: number
  saleAttrValueName: string
}

export type SpuSaleAttrValueList = SpuSaleAttrValueListModel[]

export interface SpuSaleAttrList {
  id?: number
  spuId?: number
  // 是否显示编辑模式
  inputVisible?: boolean
  saleAttrName: string
  spuSaleAttrValueList: SpuSaleAttrValueList
}

// SPU图片
export interface SpuImageModel {
  id?: number
  spuId?: number
  imgName: string
  imgUrl: string

  // 为了上传图片使用
  name?: string
  url?: string
  response?: {
    data: string
  }
  isDefault?: string
}

// SPU图片列表
export type SpuImageListModel = SpuImageModel[]

// SPU销售属性列表
export type SpuSaleAttrListModel = SpuSaleAttrList[]

export interface spuInfoModel {
  id?: number
  spuName: string
  spuId?: number
  tmId: number
  description: string
  spuImageList: any[]
  // spuSaleAttrList: [],
  spuSaleAttrList: SpuSaleAttrListModel
  spuSaleAttr?: string
  category3Id?: number
}

// 基础销售属性
export interface baseSaleAttrList {
  id: number
  name: string
}
// 基础销售属性列表
export type baseSaleListModel = baseSaleAttrList[]

export interface trademarkList {
  id: number
  logoUrl: string
  tmName: string
}

export type trademarkModel = trademarkList[]
